*** ReadMe.txt for 10Gexample.exe  ***

This is an example for validating the AMMOS-IF data received from the ESMD via 10G Ethernet. 
The example shows how the AMMOS-IF data format containing IQ data can be received and interpreted.
The data is transferred via raw Ethernet packages with jumbo frames.
The program is not optimized for speed. Depending on the performance of the PC, the maximum bandwidth 
that can be achieved without lost packages is between 10 and 40 MHz.

Preconditions are:
The ESMD is equipped with option RX-10G (10G Ethernet Interface).
The ESMD is connected to a 10G Ethernet adapter (e.g. Myri-10G Ethernet adapter from Myricom) in a PC.
The 10G Ethernet adapter is configured to receive jumboframes (MTU = 9000).
This example requires WinPcap version 4.1.2 or later!
The program example was developed with Microsoft Visual Studio 2005.

After starting the program 10Gexample.exe, the 10G Ethernet adapter has to be selected.
The ESMD has first to be configured to send the AMMOS-IF (AIF) to the MAC of the 10G Ethernet adapter in the PC.
To find out the 10G Ethernet adapter's MAC, use shell command "ipconfig -all".
The program example is configured to use channel 0.
For configuration via a Telnet connection use the appropriate remote command, e.g. 
TRAC:XGET:TAG "01-23-45-67-89-AB", 0, AIF

Next the ESMD has to be enabled to send the IF data via the appropriate remote command:
SYST:IF:XGET:REM:MODE ASH

The program prints the received information every second, e.g.
===========================================
Frames/sec                   =  25321
Overall frames recv.         =  50357
Frames lost                  =  0
Magic Word errors            =  0
Frame Type errors            =  0
Header Length errors         =  0
RX frequency in Hz           =  200000000
RX bandwidth in Hz           =  40000000
Samplerate in Samples/s      =  51200000
RMS level of last IF Frame   =  -70.2 dBFS, RMS ant. 21.5 dBuV
FM Offset in Hz              =  803094.7
Starttime in ns              =  1310450016317806138
Timestamp in us              =  1310450052798088
Timestamp Recalc in ns       =  1310450052798048091
Samplecount                  =  1867788388
KFactor                      =  0x80000000
Signal invalid for 0 samples
Blanking active for 0 samples
===========================================

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY!

For further details regarding the data format please read chapter "10G Ethernet Interface" in the ESMD manual.
